<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thứ tự trang chủ</title>
<script src="editor/richtext_full.js"></script>
<script src="js/utils/common.js"></script>
<script src="js/newsorder.js"></script>
<script src="js/checklogin.js"></script>
<script src="js/utils/XHR.js"></script>
<script src="js/homepic.js"></script>
<script src="js/utils/PageBreakAdmin.js"></script>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<div style="background-color:#464646">
  <div style="background-image:url(images/banner.jpg);background-position:center;background-repeat:no-repeat;height:120px" align="center">
    <div style="padding:3px;text-align:right;padding-right:20px;"><span id="username"></span> | <a href="DoLogout" style="color:#FFF">[Thoát]</a></div>
  </div>
  <div style="background-image:url(images/menu.jpg);" align="center">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="font-weight:bold;padding-top:10px" id="menu"></td>
      </tr>
    </table>
  </div>
</div>
<div style="background-color:#dfdfdf;height:5px"></div>
<div align="center" style="padding-top:10px"><span style="padding:3px;visibility:hidden;font-size:11px;font-weight:bold" id="loading"><img src="images/waiting.gif" width="16" height="16" /> Vui lòng chờ</span></div>
<div align="center" style="padding-top:10px">
<div style="width:1000px" align="left">

<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="339" valign="top">
    	<div>Chuyên mục: <select name="catid" onchange="listNewsCat(-1)">
    	  <option value="1">Chính trị - xã hội</option>
    	  <option value="6">Thế giới</option>          
    	  <option value="2">Kinh tế</option>          
       	  <option value="7">Văn hóa - Nghệ thuật</option>                    
       	  <option value="5">Thể thao</option>                              
       	  <option value="4">Giáo dục</option>                                        
       	  <option value="9">Đời sống</option>                                                  
       	  <option value="8">Sức khỏe</option>                                                            
       	  <option value="3">KHCN</option>                                                                      
         	
        </select></div>
        <div id="pagebreak1" align="center" style="padding:5px"></div>
        <div style="overflow:auto;padding-right:20px;background-color:#F4F4F4"  id="listnews2"></div>
        <div id="pagebreak2" align="center" style="padding:5px"></div>
    </td>
    <td width="651" valign="top" style="padding-left:10px">
    <div style="padding-top:10px;padding-bottom:10px;font-size:15px;font-weight:bold">Những tin hiển thị trang 
	    <span style="padding:5px;background-color:#EBEBEB;cursor:pointer" id="tab_0">TOP NEWS</span>
     <div id="divmain_7" style="cursor:pointer;display:BLOCK;padding:5px;background-color:#CCCCFF;margin-top:5px;font-weight:normal"><span id="subtab_0"  onclick="clickSubTab(0)">Trang chủ </span>&nbsp;|&nbsp;<span id="subtab_1" onclick="clickSubTab(1)">Chính trị - Xã hội</span>&nbsp;|&nbsp;<span id="subtab_6" onclick="clickSubTab(6)">Thế giới</span>&nbsp;|&nbsp;<span id="subtab_2" onclick="clickSubTab(2)">Kinh tế</span>&nbsp;|&nbsp;<span id="subtab_7" onclick="clickSubTab(7)">Văn hóa - Nghệ thuật</span>&nbsp;|&nbsp;<span id="subtab_5" onclick="clickSubTab(5)">Thể thao</span>&nbsp;|&nbsp;<span id="subtab_4" onclick="clickSubTab(4)">Giáo dục</span>&nbsp;|&nbsp;<span id="subtab_9" onclick="clickSubTab(9)">Đời sống</span>&nbsp;|&nbsp;<span id="subtab_8" onclick="clickSubTab(8)">Sức khỏe</span>&nbsp;|&nbsp;<span id="subtab_3" onclick="clickSubTab(3)">KHCN</span>&nbsp;
     </div>
    </div>
    <div style="padding:5px;display:none">Chế độ chạy <input name="checkmode" type="radio" value="" checked="checked" onclick="updateMode(0)" /> Làm tay &nbsp;&nbsp; <input name="checkmode" type="radio" value=""  onclick="updateMode(1)"  /> Tự động</div>
    Link: <input name="newsid" type="text" id="newsid" style="width:300px"/>
  <input type="button" name="button" id="button" value="Thêm vào cuối" onclick="addHome(0)" />
  <input type="button" name="button4" id="button4" value="Thêm vào đầu" onclick="addHome(1)" />
  <div style="color:#F00;font-size:14px;font-weight:bold;padding:3px">Trang chủ phải đủ 12 Tin, các tin trong 6 tin, trong đó 4 tin đầu cần hình lớn 2 tin sau không cần (hiện đang có <span id="totalnews"></span> tin)</div>
<div id="listnews" style="padding-top:10px;width:600px"></div>
<div style="padding-left:200px"><input type="button" value="Cập nhật thứ tự" onclick="updatePosition()" id="updateBtn"/>
  <input type="button" name="button3" id="button3" value="PUBLISH" onclick="publishHome()" />
</div></td>
  </tr>
</table>



</div>
</div>
<div id="fixed_div" style="z-index:15"></div>
<div class="commonfloatdiv" id="upload_div" style="width:260px;height:120px;z-index:100;display:none">
<iframe name="iframenull" style="display:none"></iframe>
<form action="UploadHomePic" method="post" enctype="multipart/form-data" name="myform" target="iframenull">
	Kích thước ảnh lớn w:203px - h:205px<br />
    <input type="file" name="homepic_1" />
    <input type="file" name="homepic_2" />
    <input type="file" name="homepic_3" />    
    <input name="newsId" type="hidden" id="newsId" />
    <input name="oldFile" type="hidden" id="oldFile" /><br />
    <input type="submit" name="button2" id="button2" value="Upload" />
    <input name="" type="button" onClick="hideDiv('upload_div')" value="Đóng"/>
</form>
<div style="visibility:hidden" id="loading"><img src="images/waiting.gif" width="16" height="16" /></div></div>
<div class="commonfloatdiv" id="changepass_div" style="width:260px;height:90px;z-index:100;display:none">
Mật khẩu cũ: &nbsp;&nbsp;
<input name="old_password" type="old_password" /><br />
Mật khẩu mới: <input name="password" type="password" /><br />
Nhập lại:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="c_password" type="password" /><br />
<div align="center"><input name="" type="button" value="Cập nhật" onclick="updatePassword()"/><input name="" type="button" value="Đóng" onclick="$('changepass_div').style.display='none'"/></div>
</div>
</body>
</html>
